package com.treasure.mall.biz.service.core.live;

import com.treasure.mall.biz.base.CrudService;
import com.treasure.mall.biz.entity.live.LiveDirectorPO;

import java.util.List;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/6/13
 */
public interface LiveDirectorService extends CrudService<LiveDirectorPO, Long> {
    List<LiveDirectorPO> findByRoom(Long roomId);

    LiveDirectorPO findByRoomAndUser(Long roomId, Long userId);

    void modifyName(Long id, String directorName);

    /**
     * 获取用户授权的直播间ID
     *
     * @param userId
     * @return
     */
    List<Long> findRoomIdsByUserId(Long userId);


    boolean checkIsAuthLive(Long userId);

    void deleteById(Long id);
}
